package ru.lukyanets.transmission.protocol.model.torrent;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author slukyanets
 */
@SuppressWarnings({"unused", "WeakerAccess"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
        "bytesCompleted",
        "length",
        "name"
})
@Getter
@Setter
@EqualsAndHashCode(of = "name")
@ToString(of = "name")
public class FileInfo {

    @JsonProperty("bytesCompleted")
    private long bytesCompleted;
    @JsonProperty("length")
    private long length;
    @JsonProperty("name")
    private String name;
}